package com.wowo.boy.xml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserApp {
    public static void main(String[] args) {
        User user= new User();
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("boy/user.xml");
        UserController userController = applicationContext.getBean(UserController.class);
        userController.save(user);
    }

}
